import request from '@/utils/request'

// 查询律师列表
export function listLawyer(query) {
  return request({
    url: '/system/lawyer/list',
    method: 'get',
    params: query
  })
}

// 查询律师详细
export function getLawyer(id) {
  return request({
    url: '/system/lawyer/' + id,
    method: 'get'
  })
}

// 新增律师
export function addLawyer(data) {
  return request({
    url: '/system/lawyer',
    method: 'post',
    data: data
  })
}

// 修改律师
export function updateLawyer(data) {
  return request({
    url: '/system/lawyer',
    method: 'put',
    data: data
  })
}

// 删除律师
export function delLawyer(id) {
  return request({
    url: '/system/lawyer/' + id,
    method: 'delete'
  })
}
